<!---

Copyright 2008:

Author: Marco van den Oever
Company: WSO
Website: http://www.webserviceonline.biz
Email: marco@webserviceonline.biz

License: 

This software is licensed under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.
For a copy of the GNU General Public License check the license folder or see <http://www.gnu.org/licenses/>.

Description:

wsoFarcryBanners, a Farcry plugin to show and rotate banners from one or more banner clients on a Farcry based project

Build with great support from the Farcry-Dev group! (Google on Farcry-Dev)

Created: 14/09/08

Tested on CF8

--->
<cfsetting enablecfoutputonly="true">
<cfimport taglib="/farcry/core/tags/formtools" prefix="ft" />
<cfimport taglib="/farcry/core/tags/admin/" prefix="admin" />
<!--- set up page header --->
<admin:header title="Banners" />

<!--- check if the banner rule is deployed, else show link to deploy --->

<cftry>
  <cfquery name="bannerrulecheck" datasource="#application.dsn#">
  SELECT objectid FROM #application.dbowner#ruleBanners WHERE objectid = objectid
  </cfquery>
 <cfcatch type="database">
    <cfoutput>The 'Banner' rule has not been deployed yet. Click <a href="/webtop/admin/coapiRules.cfm?deploy=ruleBanners">here</a> to deploy it now. </cfoutput>
    <cfabort>
  </cfcatch>
</cftry>
<ft:objectAdmin
	title="Banners"
	typename="banners"
	ColumnList="bannername,bannerurl,bannerimg"
	SortableColumns="bannername,bannerurl"
	lFilterFields=""
	plugin="wsoFarcryBanners"
	sqlorderby="datetimelastUpdated desc" />
<admin:footer />
<cfsetting enablecfoutputonly="false">
